//
//  LoginFirTableViewCell.m
//  A_program
//
//  Created by 杨利佳 on 15/5/27.
//  Copyright (c) 2015年 BayMax. All rights reserved.
//

#import "LoginFirTableViewCell.h"

@implementation LoginFirTableViewCell

- (void)dealloc
{
    [_name release];
    [_logo release];
    [super dealloc];
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self createSubviews];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
    }
    return self;
}

- (void)createSubviews
{
    UIView *back = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 400, 50)];
    back.backgroundColor = [UIColor colorWithRed:0.9 green:0.9 blue:0.9 alpha:0.6];
    [self addSubview:back];
    [back release];
    
    self.logo = [[UIImageView alloc] initWithFrame:CGRectMake(10, 15, 25, 25)];
    [back addSubview:_logo];
    [_logo release];
    
    self.name = [[UILabel alloc] initWithFrame:CGRectMake(100, 10, 100, 30)];
    [back addSubview:_name];
    [_name release];
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
